﻿@model IEnumerable<VideoCache.Server.Model.NetbarInfo>

@{
    ViewBag.Title = "网吧管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2 class="pageTitle">@ViewBag.Title</h2>
<div class="easyui-panel">
<form action="@Url.Action("Index")" method="post">
    <a class="easyui-linkbutton" href="@Url.Action("Create")" data-options="plain:false">新建</a>
    <a class="easyui-linkbutton" href="@Url.Action("Delete")" data-options="plain:false">删除</a> | 

    <label>关键字 <input name="keyword" type="text" value="@ViewBag.Keyword" class="" /></label>
    <button type="submit">搜索</button>
</form>
</div>
<div class="wrap">
<table class="ten-table" style="width:100%">
<thead>
    <tr>
        <th style="width:10px"><input type="checkbox" /></th>
        <th>商户编号</th>
        <th>商户名称</th>
        <th>所属用户</th>
        <th>代理商</th>
        <th>所在地区</th>
        <th>联系人</th>
        <th>联系电话</th>
        <th>手机</th>
        <th>商户等级</th>
        <th>VIP到期时间</th>
        <th>状态</th>
        <th>创建时间</th>
        <th></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model) {
    <tr>
        <td><input type="checkbox" value="@item.Id" /></td>
        <td>@item.Id</td>
        <td>@Html.ActionLink(item.Name, "Details", new { id=item.Id })</td>
        <td>@item.UserId</td>
        <td>@item.AgentId</td>
        <td>@item.Province @item.City @item.District</td>
        <td>@item.ContactPerson</td>
        <td>@item.Telephone</td>
        <td>@item.MobilePhone</td>
        <td>@item.Level</td>
        <td>@String.Format("{0:g}", item.ExpiredTime)</td>
        <td>@item.Status</td>
        <td>@String.Format("{0:g}", item.CreateTime)</td>
        <td>
            @Html.ActionLink("充值", "Pay", new { id=item.Id }) |
            @Html.ActionLink("编辑", "Edit", new { id=item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id=item.Id })
        </td>
    </tr>
}
</tbody>
</table>
<div class="ten-pager">
    @Html.Pager("page", (int)ViewBag.PageSize, (int)ViewBag.RecordCount)
</div>
</div>
